package PLCSymbolAndScope.PLCSymbols;

import PLCSymbolAndScope.PLCSymbolTables.PLCSymbolTable;

public class PLCVariable extends PLCSymbol{
    /*
    * variable中的几个属性都需要手动设置
    * */

    //变量段类型
    PLCModifierEnum.VarSections varSections;

    //访问权限
    public PLCModifierEnum.AccessModifier accessModifier;

    //是否为保留变量
    public PLCModifierEnum.RetainModifier retainQualifiers;

    //是否是常量
    public boolean ifConst;

    public PLCVariable(){
        super();
    }

    public PLCVariable(int typeId, String name, int rowNum){
        super(typeId, name, rowNum);
    }

    public PLCVariable(String name){
        super(name);
    }

    public PLCVariable(int defaultNum){
        super(defaultNum);
    }
}
